package com.entity;


import java.util.function.Supplier;

public class Goods {

  private Integer id;
  private String goodsId;
  private String name;
  private String code;
  private Integer status;
  private Integer type;
  private Integer unitId;
  private double price;
  private Integer categoryId;
  private Category category;
  private Unit unit;
  private int supplieId;
  private Supplie supplie;
  private int numstatus;
  private double purprc;

  public Goods(Integer id, String goodsId, String name, String code, Integer status, Integer type, Integer unitId, double price, Integer categoryId, Category category, Unit unit, int supplieId, Supplie supplie, int numstatus, double purprc) {
    this.id = id;
    this.goodsId = goodsId;
    this.name = name;
    this.code = code;
    this.status = status;
    this.type = type;
    this.unitId = unitId;
    this.price = price;
    this.categoryId = categoryId;
    this.category = category;
    this.unit = unit;
    this.supplieId = supplieId;
    this.supplie = supplie;
    this.numstatus = numstatus;
    this.purprc = purprc;
  }

  public double getPurprc() {
    return purprc;
  }

  public void setPurprc(double purprc) {
    this.purprc = purprc;
  }

  public Goods() {
  }

  public Goods(String goodsId, String name, String code, Integer status, Integer type, Integer unitId, double price, Integer categoryId) {
    this.goodsId = goodsId;
    this.name = name;
    this.code = code;
    this.status = status;
    this.type = type;
    this.unitId = unitId;
    this.price = price;
    this.categoryId = categoryId;
  }

  public Goods(Integer id, String goodsId, String name, String code, Integer status, Integer type, Integer unitId, double price, Integer categoryId) {
    this.id = id;
    this.goodsId = goodsId;
    this.name = name;
    this.code = code;
    this.status = status;
    this.type = type;
    this.unitId = unitId;
    this.price = price;
    this.categoryId = categoryId;
  }

  @Override
  public String toString() {
    return "Goods{" +
            "id=" + id +
            ", goodsId='" + goodsId + '\'' +
            ", name='" + name + '\'' +
            ", code='" + code + '\'' +
            ", status=" + status +
            ", type=" + type +
            ", unitId=" + unitId +
            ", price=" + price +
            ", categoryId=" + categoryId +
            ", category=" + category +
            ", unit=" + unit +
            ", supplieId=" + supplieId +
            ", supplie=" + supplie +
            ", numstatus=" + numstatus +
            '}';
  }

  public int getNumstatus() {
    return numstatus;
  }

  public void setNumstatus(int numstatus) {
    this.numstatus = numstatus;
  }

  public Supplie getSupplie() {
    return supplie;
  }

  public void setSupplie(Supplie supplie) {
    this.supplie = supplie;
  }

  public Supplie getSupplier() {
    return supplie;
  }

  public void setSupplier(Supplie supplie) {
    this.supplie = supplie;
  }

  public int getSupplieId() {
    return supplieId;
  }

  public void setSupplieId(int supplieId) {
    this.supplieId = supplieId;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(String goodsId) {
    this.goodsId = goodsId;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }


  public Integer getUnitId() {
    return unitId;
  }

  public void setUnitId(Integer unitId) {
    this.unitId = unitId;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public Integer getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Integer categoryId) {
    this.categoryId = categoryId;
  }

  public Category getCategory() {
    return category;
  }

  public void setCategory(Category category) {
    this.category = category;
  }

  public Unit getUnit() {
    return unit;
  }

  public void setUnit(Unit unit) {
    this.unit = unit;
  }
}
